import request from '@/utils/request'

// 查询消息列表
export function listInformation(query) {
  return request({
    url: '/committee/message/list',
    method: 'get',
    params: query
  })
}

export function getCollege(query) {
  return request({
    url: '/committee/message/guideUnitList',
    method: 'get',
  })
}

// 查询消息详细
export function getInformation(msgid) {
  return request({
    url: '/committee/information/' + msgid,
    method: 'get'
  })
}
// 查询消息确认详细
export function getConfirmdetail(msgid) {
  return request({
    url: '/committee/details/' + msgid,
    method: 'get'
  })
}

// 新增消息
export function addInformation(data) {
  return request({
    url: '/committee/message',
    method: 'post',
    data: data
  })
}

// 修改消息
export function updateInformation(data) {
  return request({
    url: '/committee/information',
    method: 'put',
    data: data
  })
}

// 删除消息
export function delInformation(msgid) {
  return request({
    url: '/committee/message/' + msgid,
    method: 'delete'
  })
}

// 社会实践团队
export function getUserTeam() {
  return request({
    url: '/eqxm/teamStudent/getUserTeam',
    method: 'get'
  })
}

// 社团组织信息
export function FindOrgInfoByStudentId(query) {
  return request({
    url: '/committee/org/orgNameList/',
    method: 'get',
    params: query
  })
}
